﻿#include "helpdialog.h"
#include "ui_helpdialog.h"

HelpDialog::HelpDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::HelpDialog)
{
    ui->setupUi(this);
    iniUI();
}

HelpDialog::~HelpDialog()
{
    delete ui;
}

void HelpDialog::iniUI()
{
    /* 窗口背景颜色 */
    QPalette palette = this->palette();
    QColor color(255,255,255);          // 白色
    palette.setBrush(QPalette::Window, QBrush(color));
    this->setPalette(palette);

    QFont font("Microsoft YaHei",10);
    ui->HelpText->setFont(font);

    ui->HelpText->setReadOnly(true);
    this->setFixedSize(this->width(),this->height());
}
